using System;
using System.Data.SQLite;
 
namespace SQLiteConnectionTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "Data Source=your_database.db;Version=3;";
 
            using (var connection = new SQLiteConnection(connectionString))
            {
                try
                {
                    connection.Open();
                    Console.WriteLine("连接成功！");
                }
                catch (SQLiteException ex)
                {
                    Console.WriteLine("连接失败：" + ex.Message);
                }
            }
        }
    }
}